@extends("admin.base")
  @section("content")
		  <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            下架商品浏览
            <small>preview of simple tables</small>
          </h1>
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li><a href="#">商品管理</a></li>
            <li class="active">商品下架区</li>
          </ol>
        </section>

        <!-- Main content -->
        <section class="content">
          <div class="row">
            <div class="col-md-12">
              <div class="box">
                <div class="box-header with-border">
                  <h3 class="box-title"><i class="fa fa-th"></i> 商品浏览</h3>
                </div><!-- /.box-header -->
                <div class="box-body">
                  <table class="table table-bordered">
                    <tr>
                      <th style="width:60px">商品ID</th>
                      <th style="width:70px">商品分类</th>
                      <th style="width:60px">商品图片</th>
                      <th style="width:60px">商品名称</th>
                      <th style="width:60px">商品价格</th>
                      <th style="width:60px">商品配置</th>
                      <th style="width:60px">商品颜色</th>
                      <th style="width:60px">商品库存</th>
                      <th style="width:70px">商品状态</th>
                      <th style="width:60px">添加时间</th>
                      <th style="width:100px">操作</th>
                    </tr>
                   @foreach ($list as $v)
                    <tr>
                      <td style="height:60px">{{ $v->sid }}</td>
                      <td style="height:60px">{{$v->comtaby}}</td>
                      <td style="height:60px"><a href="/uploads/{{$v->zimg}}"><img src="/uploads/{{$v->fimg}}"></a></td>
                      <td style="height:60px">{{ $v->comname }}</td>
                      <td style="height:60px">{{$v->comprice}}</td>
                      <td style="height:60px">{{$v->comcofig}}</td>
                      <td style="height:60px">{{$v->comcolor}}</td>
                      <td style="height:60px">{{$v->inventory}}</td>
                      <td style="height:60px">
                        @if(($v->comstatus) > 1 )
                            在售
                        @elseif(($v->comstatus) == 1)
                            上架
                        @elseif(($v->comstatus) < 1)
                            下架
                        @endif

                      </td >
                      <td style="height:60px">{{$v->stime}}</td>
                      <td style="height:60px">
                       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                       <a href=""><button class="btn btn-xs btn-primary">详情</button></a>
                      </td>
                    </tr>
                    @endforeach
                  </table>
                </div><!-- /.box-body -->
                
                <div class="box-footer clearfix">
                 {!! $list->render() !!}
                </div>

              </div><!-- /.box -->
            </div><!-- /.col -->
            
          </div><!-- /.row -->
         
        </section><!-- /.content -->
       
	@endsection
